package com.wiyun.engine.skeleton;

import com.wiyun.engine.nodes.Sprite;
import com.wiyun.engine.nodes.SpriteFrame;
import com.wiyun.engine.opengl.Texture2D;
import com.wiyun.engine.utils.ZwoptexManager;

public class Player extends Role {
	private int _power=0;//力量
	private int _agile=0;//敏捷
	private int _hugh=0;//智力
	private float _powerToLife=25;//力量转生命
	private float _powerToLifeBack=0.05f;//力量转生命恢复
	private float _agileToAttackspeed=0.2f;//敏捷转攻速
	private float _agileToDefense=0.3f;//敏捷转护甲
	private float _hughToMana=15;//智力转魔法
	private float _hughToManaBack=0.05f;//智力转魔法恢复
	
	private float _scale = 1.2f;//
	private RoleType roleType;//英雄类型
	protected Player(int pointer) {
		super(pointer);
		// TODO Auto-generated constructor stub
	}
	
	public static Sprite make(int plistId,Texture2D tex)
	{
		ZwoptexManager.addZwoptex("player1", plistId, tex);
		SpriteFrame restupFrame = ZwoptexManager.getSpriteFrame("player1", "foot_restdown1.png");
		return ZwoptexManager.makeSprite("player1","foot_restdown1.png",null);
	}

}
